//
//  NSString+SGAppInfo.h
//  SGExtensionObjC
//
//  Created by xyanl on 2020/1/16.
//  Copyright © 2020 xyanl. All rights reserved.
//
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, SGBundleType) {
    /// 项目名称
    SGBundleTypeName,
    /// 版本 0.0.1
    SGBundleTypeShortVersion,
    /// build 版本
    SGBundleTypeBuildVersion,
    /// bundle id
    SGBundleTypeIdentifier,
};

@interface NSString (SGAppInfo)

/// 获取 APP 信息
/// @param type 信息类型
+ (NSString *)sg_appInfoWithType:(SGBundleType)type;

/// 获取 APP 信息
/// @param key 参考返回值输出内容
/// CFBundleName:APP 名字
/// CFBundleShortVersionString:APP 版本号
+ (NSDictionary *)sg_getAppInfoWithKey:(NSString *)key;


/// 设备唯一码
+ (NSString *)sg_UUID;

#pragma mark -- 判断手机型号
+ (NSString*)sg_phoneModel;

@end

NS_ASSUME_NONNULL_END
